.class public Lcom/estrongs/android/ui/dialog/v0;
.super Lcom/estrongs/android/ui/dialog/q;
.source "RootExplorerDialog.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/estrongs/android/ui/dialog/v0$c;,
        Lcom/estrongs/android/ui/dialog/v0$d;
    }
.end annotation


# instance fields
.field private a:Landroid/widget/ListView;

.field private b:Lcom/estrongs/android/ui/dialog/v0$c;


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 9

    .line 1
    invoke-direct {p0, p1}, Lcom/estrongs/android/ui/dialog/q;-><init>(Landroid/content/Context;)V

    .line 2
    invoke-static {p1}, Lcom/estrongs/android/pop/esclasses/h;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    const v1, 0x7f0c02f3

    const/4 v2, 0x0

    .line 3
    invoke-virtual {v0, v1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    .line 4
    invoke-virtual {p0, v0}, Lcom/estrongs/android/ui/dialog/q;->setContentView(Landroid/view/View;)V

    const v1, 0x7f110861

    .line 5
    invoke-virtual {p0, v1}, Lcom/estrongs/android/ui/dialog/q;->setTitle(I)V

    const v1, 0x7f0907da

    .line 6
    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ListView;

    iput-object v0, p0, Lcom/estrongs/android/ui/dialog/v0;->a:Landroid/widget/ListView;

    const v1, 0x7f080816

    .line 7
    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setSelector(I)V

    .line 8
    invoke-static {}, Lcom/estrongs/fs/impl/local/j;->f()[Ljava/lang/String;

    move-result-object v0

    const/4 v1, 0x0

    if-eqz v0, :cond_0

    .line 9
    array-length v2, v0

    goto :goto_0

    :cond_0
    const/4 v2, 0x0

    .line 10
    :goto_0
    div-int/lit8 v2, v2, 0x3

    new-array v3, v2, [Lcom/estrongs/android/ui/dialog/v0$d;

    if-eqz v0, :cond_2

    const/4 v4, 0x0

    :goto_1
    if-ge v4, v2, :cond_2

    mul-int/lit8 v5, v4, 0x3

    add-int/lit8 v6, v5, 0x2

    .line 11
    aget-object v6, v0, v6

    invoke-virtual {v6}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v6

    const-string v7, "ro"

    invoke-virtual {v6, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v6

    if-eqz v6, :cond_1

    .line 12
    new-instance v6, Lcom/estrongs/android/ui/dialog/v0$d;

    aget-object v8, v0, v5

    add-int/lit8 v5, v5, 0x1

    aget-object v5, v0, v5

    invoke-direct {v6, p0, v8, v5, v7}, Lcom/estrongs/android/ui/dialog/v0$d;-><init>(Lcom/estrongs/android/ui/dialog/v0;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    aput-object v6, v3, v4

    goto :goto_2

    .line 13
    :cond_1
    new-instance v6, Lcom/estrongs/android/ui/dialog/v0$d;

    aget-object v7, v0, v5

    add-int/lit8 v5, v5, 0x1

    aget-object v5, v0, v5

    const-string v8, "rw"

    invoke-direct {v6, p0, v7, v5, v8}, Lcom/estrongs/android/ui/dialog/v0$d;-><init>(Lcom/estrongs/android/ui/dialog/v0;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    aput-object v6, v3, v4

    :goto_2
    add-int/lit8 v4, v4, 0x1

    goto :goto_1

    .line 14
    :cond_2
    new-instance v0, Lcom/estrongs/android/ui/dialog/v0$c;

    iget-object v2, p0, Lcom/estrongs/android/ui/dialog/q;->mContext:Landroid/content/Context;

    invoke-direct {v0, p0, v2, v3}, Lcom/estrongs/android/ui/dialog/v0$c;-><init>(Lcom/estrongs/android/ui/dialog/v0;Landroid/content/Context;[Lcom/estrongs/android/ui/dialog/v0$d;)V

    iput-object v0, p0, Lcom/estrongs/android/ui/dialog/v0;->b:Lcom/estrongs/android/ui/dialog/v0$c;

    .line 15
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/v0;->a:Landroid/widget/ListView;

    iget-object v2, p0, Lcom/estrongs/android/ui/dialog/q;->mContext:Landroid/content/Context;

    invoke-virtual {v2}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    const v3, 0x7f0809d4

    invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v2

    invoke-virtual {v0, v2}, Landroid/widget/ListView;->setDivider(Landroid/graphics/drawable/Drawable;)V

    .line 16
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/v0;->a:Landroid/widget/ListView;

    const/4 v2, 0x1

    invoke-virtual {v0, v2}, Landroid/widget/ListView;->setFocusable(Z)V

    .line 17
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/v0;->a:Landroid/widget/ListView;

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setCacheColorHint(I)V

    .line 18
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/v0;->a:Landroid/widget/ListView;

    iget-object v1, p0, Lcom/estrongs/android/ui/dialog/v0;->b:Lcom/estrongs/android/ui/dialog/v0$c;

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    const v0, 0x7f11029e

    .line 19
    invoke-virtual {p1, v0}, Landroid/content/Context;->getText(I)Ljava/lang/CharSequence;

    move-result-object v0

    new-instance v1, Lcom/estrongs/android/ui/dialog/v0$a;

    invoke-direct {v1, p0}, Lcom/estrongs/android/ui/dialog/v0$a;-><init>(Lcom/estrongs/android/ui/dialog/v0;)V

    invoke-virtual {p0, v0, v1}, Lcom/estrongs/android/ui/dialog/q;->setConfirmButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/widget/Button;

    const v0, 0x7f110299

    .line 20
    invoke-virtual {p1, v0}, Landroid/content/Context;->getText(I)Ljava/lang/CharSequence;

    move-result-object p1

    new-instance v0, Lcom/estrongs/android/ui/dialog/v0$b;

    invoke-direct {v0, p0}, Lcom/estrongs/android/ui/dialog/v0$b;-><init>(Lcom/estrongs/android/ui/dialog/v0;)V

    invoke-virtual {p0, p1, v0}, Lcom/estrongs/android/ui/dialog/q;->setCancelButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/widget/Button;

    return-void
.end method

.method static synthetic a(Lcom/estrongs/android/ui/dialog/v0;)Lcom/estrongs/android/ui/dialog/v0$c;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/ui/dialog/v0;->b:Lcom/estrongs/android/ui/dialog/v0$c;

    return-object p0
.end method

.method public static a(Landroid/content/Context;)Z
    .locals 2

    .line 2
    invoke-static {}, Lcom/estrongs/android/pop/l;->L1()Lcom/estrongs/android/pop/l;

    move-result-object v0

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Lcom/estrongs/android/pop/l;->A(Z)V

    .line 3
    invoke-static {p0, v1}, Lcom/estrongs/fs/impl/local/j;->a(Landroid/content/Context;Z)Z

    move-result p0

    if-eqz p0, :cond_0

    .line 4
    invoke-static {}, Lcom/estrongs/android/statistics/b;->b()Lcom/estrongs/android/statistics/b;

    move-result-object v0

    if-eqz v0, :cond_1

    const-string v1, "Root_Try"

    .line 5
    invoke-virtual {v0, v1}, Lcom/estrongs/android/statistics/b;->b(Ljava/lang/String;)V

    goto :goto_0

    .line 6
    :cond_0
    invoke-static {}, Lcom/estrongs/android/pop/l;->L1()Lcom/estrongs/android/pop/l;

    move-result-object v0

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/estrongs/android/pop/l;->A(Z)V

    .line 7
    :cond_1
    :goto_0
    invoke-static {}, Les/p10;->e()Les/p10;

    move-result-object v0

    invoke-virtual {v0}, Les/p10;->b()V

    return p0
.end method
